package org.chainsale.main;

import org.chainsale.bean.Practitioner;
import org.chainsale.common.PractitionerFactory;

public class Data {

	public static Practitioner createData4Tree() {
		Practitioner p1 = PractitionerFactory.create();
		p1.setLayer(1);
		Practitioner.putToLayerMap(p1.getLayer(), p1.getId());
		Practitioner.SYSTEM_TOTAL_NUMBER++;
		
		Practitioner p2 = PractitionerFactory.create();
		p1.addUnderling(p2);

		Practitioner p3 = PractitionerFactory.create();
		p1.addUnderling(p3);

		Practitioner p4 = PractitionerFactory.create();
		p2.addUnderling(p4);

		Practitioner p5 = PractitionerFactory.create();
		p2.addUnderling(p5);

		Practitioner p6 = PractitionerFactory.create();
		p2.addUnderling(p6);
		
		return p1;
	}
	
}
